@extends('admin.common.admin_main')
@section('container')
<div class="uc-body">
    <div class="uc-head">
        <ul>
            <li>
                <span class="sel">
                    服务商信息
                </span>
                @if ($dataInfo['auth_status'] == 0)
                <span class="text-disabled">(未认证)</span>
                @elseif($dataInfo['auth_status'] == 1)
                <span class="text-warning">(认证中)</span>
                @elseif($dataInfo['auth_status'] == 3)
                <span class="text-success">(已认证)</span>
                @elseif($dataInfo['auth_status'] == 2)
                <span class="text-danger">(认证未通过)</span>
                @endif
            </li>
        </ul>
        <div class="fr">
            <a class="btn btn-warning" href="/user/company?type=1">取消编辑</a>
        </div>
    </div>
    <div class="form form-table">
        <div class="form-body">
            <div class="row">
                <label class="col-1 control-label request-label" for="company_name">单位名称</label>
                <div class="col-3">
                    <input id="company_name" class="form-control" type="text" value="{{$dataInfo['company_name']}}">
                </div>
                <label class="col-1 control-label" for="company_type_id">单位性质</label>
                <div class="col-3">
                    <select class="form-control" id="company_type_id">
                        <option value="">请选择</option>
                        @forelse ($company_type_list as $key=>$value)
                            <option value="{{$key}}" {{$dataInfo['company_type_id']==$key?"selected=selected":""}}>{{$value}}</option>
                        @empty
                        @endforelse
                    </select>
                </div>
                <label class="col-1 control-label">单位Logo</label>
                <div class="col-3 j_fileUpload">
                    <div class="static fl">
                        @if ($dataInfo['logo_info'])
                            <a class="j_fileUrl" data-href="{{$dataInfo['logo_info'][0]['url']}}">{{$dataInfo['logo_info'][0]['name']}}</a>
                        @else
                        <a class="j_fileUrl"></a>
                        @endif
                    </div>
                    <div class="file_select">
                        <div class="static">
                            @if ($dataInfo['logo_info'])
                                <a class="btn btn-small btn-primary j_fileTxt" data-txt="修改LOGO">修改LOGO</a>
                                <input class="txt_file j_fileSelect" name="files" type="file" id="logo_info">
                                <input class="j_name" type="hidden" id="logo_img_name" value="{{$dataInfo['logo_info'][0]['name']}}">
                                <input class="j_url" type="hidden" id="logo_img_url" value="{{$dataInfo['logo_info'][0]['url']}}">
                                <input class="j_md5" type="hidden" id="logo_img_md5" value="{{$dataInfo['logo_info'][0]['md5']}}">
                                <input class="j_thumbUrl" type="hidden" id="logo_img_thumbUrl" value="{{$dataInfo['logo_info'][0]['thumbUrl']}}">
                            @else
                                <a class="btn btn-small btn-primary j_fileTxt" data-txt="上传文件">上传LOGO</a>
                                <input class="txt_file j_fileSelect" name="files" type="file" id="logo_info">
                                <input class="j_name" type="hidden" id="logo_img_name" >
                                <input class="j_url" type="hidden" id="logo_img_url" >
                                <input class="j_md5" type="hidden" id="logo_img_md5" >
                                <input class="j_thumbUrl" type="hidden" id="logo_img_thumbUrl">
                            @endif

                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">法人代表</label>
                <div class="col-3">
                    <input class="form-control" type="text" id="legan_user_name" value="{{$dataInfo['legan_user_name']}}">
                </div>
                <label class="col-1 control-label">联系电话</label>
                <div class="col-3">
                    <input class="form-control" type="text" id="legan_user_phone" value="{{$dataInfo['legan_user_phone']}}">
                </div>
                <label class="col-1 control-label">联系邮箱</label>
                <div class="col-3">
                    <input class="form-control" type="text" id="legan_user_email" value="{{$dataInfo['legan_user_email']}}">
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">注册时间</label>
                <div class="col-3">
                    <input class="form-control j_dateSelect" type="text" readonly id="company_regist_date" value="{{$dataInfo['company_regist_date']}}">
                </div>
                <label class="col-2 control-label">银行信用等级</label>
                <div class="col-2">
                    <select id="bank_level_id" class="form-control">
                        <option value="">请选择</option>
                        @forelse ($bank_level_list as $key=>$value)
                        <option value="{{$key}}" {{$dataInfo['bank_level_id']==$key?"selected=selected":""}}>{{$value}}</option>
                        @empty
                        @endforelse
                    </select>
                </div>
                <label class="col-1 control-label">邮编</label>
                <div class="col-3">
                    <input class="form-control" type="text" id="zip_code" value="{{$dataInfo['zip_code']}}">
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">注册资本</label>
                <div class="col-3">
                    <input class="form-control form-control-sm" type="text" placeholder="万元" id="company_regist_money" value="{{$dataInfo['company_regist_money']}}">
                    <select id="company_regist_money_type" class="form-control">
                        <option value="1" {{$dataInfo['company_regist_money_type']==1?"selected=selected":""}}>人民币</option>
                        <option value="2" {{$dataInfo['company_regist_money_type']==2?"selected=selected":""}}>美元</option>
                    </select>
                </div>
                <label class="col-1 control-label">资产总额</label>
                <div class="col-3">
                    <input id="all_money" class="form-control" type="text" placeholder="万元" value="{{$dataInfo['all_money']}}">
                </div>
                <label class="col-1 control-label">净资产</label>
                <div class="col-3">
                    <input id="earn_money" class="form-control" type="text" placeholder="万元" value="{{$dataInfo['earn_money']}}">
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">注册地址</label>
                <div class="col-11">
                    <select class="form-control" id="reg_province">
                        <option value="">请选择</option>
                        @forelse ($province_list as $key=>$value)
                        <option value="{{$value['id']}}" {{$value['id']==$p?"selected=selected":""}}>{{$value['name']}}</option>
                        @empty
                        @endforelse
                    </select>
                    <select class="form-control" id="reg_city">
                        <option value="">请选择</option>
                        @forelse ($city_list as $key=>$value)
                        <option value="{{$value['id']}}" {{$value['id']==$c?"selected=selected":""}}>{{$value['name']}}</option>
                        @empty
                        @endforelse
                    </select>
                    <select class="form-control" id="reg_district">
                        <option value="">请选择</option>
                        @forelse ($area_list as $key=>$value)
                        <option value="{{$value['id']}}" {{$value['id']==$a?"selected=selected":""}}>{{$value['name']}}</option>
                        @empty
                        @endforelse
                    </select>
                    <input class="form-control" size="60" type="text" placeholder="" id="company_regist_address" value="{{$dataInfo['company_regist_address']}}">
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label request-label">联系人</label>
                <div class="col-3">
                    <input class="form-control" type="text" placeholder="" id="contact_user_name" value="{{$dataInfo['contact_user_name']}}">
                </div>
                <label class="col-1 control-label request-label">联系手机</label>
                <div class="col-3">
                    <input class="form-control" type="text" placeholder="" id="contact_user_phone" value="{{$dataInfo['contact_user_phone']}}">
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">固定电话</label>
                <div class="col-3">
                    <input class="form-control" type="text" placeholder="含区号" id="fix_phone" value="{{$dataInfo['fix_phone']}}">
                </div>
                <label class="col-1 control-label">传真号码</label>
                <div class="col-3">
                    <input class="form-control" type="text" placeholder="含区号" id="fix_number" value="{{$dataInfo['fix_number']}}">
                </div>
                <label class="col-1 control-label request-label">Email</label>
                <div class="col-3">
                    <input class="form-control" type="text" placeholder="" id="contact_user_email" value="{{$dataInfo['contact_user_email']}}">
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label request-label">通信地址</label>
                <div class="col-11">
                    <select class="form-control" id="contact_province">
                        <option value="">请选择</option>
                        @forelse ($province_list as $key=>$value)
                        <option value="{{$value['id']}}" {{$value['id']==$p1?"selected=selected":""}}>{{$value['name']}}</option>
                        @empty
                        @endforelse
                    </select>
                    <select class="form-control" id="contact_city">
                        <option value="">请选择</option>
                        @forelse (@$city_list1 as $key=>$value)
                        <option value="{{$value['id']}}" {{$value['id']==$c1?"selected=selected":""}}>{{$value['name']}}</option>
                        @empty
                        @endforelse
                    </select>
                    <select class="form-control" id="contact_district">
                        <option value="">请选择</option>
                        @forelse (@$area_list1 as $key=>$value)
                        <option value="{{$value['id']}}" {{$value['id']==$a1?"selected=selected":""}}>{{$value['name']}}</option>
                        @empty
                        @endforelse
                    </select>
                    <input class="form-control" size="60" type="text" placeholder="" id="contact_user_address" value="{{@$dataInfo['contact_user_address']}}">
                </div>
            </div>
            <div class="j_selectPane">
                <div class="row">
                    <label class="col-1 control-label request-label">涉及领域</label>
                    <div class="col-11">
                        <a class="btn btn-primary j_setDomain">设置</a>
                        <div class="domain j_domainItems">
                            @if($selectCompanyDomainList)
                                @forelse($selectCompanyDomainList as $k=>$v)
                                    <span>{{$getNameList[$v]['name']}}<input type="hidden" class="j_domainId" value={{$v}}></span>
                                @empty
                                @endforelse
                            @endif
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">技术路径</label>
                 <div class="col-11">
                    <a class="btn btn-primary j_setPath">设置</a>
                </div>
            </div>
            <div class="row">
                @if($tech_route_info)
                        <label class="col-1 control-label">服务能力</label>
                    <div class="col-11">

                        <table class="v3-table v3-table_tech j_techService">
                            <thead>
                            <tr>
                                <th>技术路径名称</th>
                                <th>评估咨询</th>
                                <th>方案设计</th>
                                <th>建设实施</th>
                                <th>运维</th>
                                <th>设备供应</th>
                                <th>其他</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $arrTechList = [];?>
                            @forelse($tech_route_info as $k=>$v)
                                <?php array_push($arrTechList, bindec($v['flag']));?>
                                <?php $v['flag'] = str_pad($v['flag'], 6, '0', STR_PAD_LEFT);?>
                                <tr>
                                    <td>{{$v['name']}}</td>
                                    <td><input type="checkbox"  {{@$v['flag'][0]==1?"checked=checked":''}}></td>
                                    <td><input type="checkbox"  {{@$v['flag'][1]==1?"checked=checked":''}}></td>
                                    <td><input type="checkbox"  {{@$v['flag'][2]==1?"checked=checked":''}}></td>
                                    <td><input type="checkbox"  {{@$v['flag'][3]==1?"checked=checked":''}}></td>
                                    <td><input type="checkbox"  {{@$v['flag'][4]==1?"checked=checked":''}}></td>
                                    <td><input type="checkbox"  {{@$v['flag'][5]==1?"checked=checked":''}}></td>
                                </tr>
                            @empty

                            @endforelse
                            </tbody>
                        </table>

                    </div>

                @endif
            </div>
            <div class="row">
                <label class="col-1 control-label">职工总数</label>
                <div class="col-2">
                    <input id="stuff_num" class="form-control" type="text" placeholder="" value="{{$dataInfo['stuff_num']}}">
                </div>
                <label class="col-2 control-label">工程技术人员</label>
                <div class="col-2">
                    <input id="tech_num" class="form-control" type="text" placeholder="" value="{{$dataInfo['tech_num']}}">
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">主要业务</label>
                <div class="col-10">
                    <textarea id="major_business" class="form-control form-control-text">{{$dataInfo['major_business']}}</textarea>
                </div>
            </div>
            <div class="j_selectPane">
                <div class="row">
                    <label class="col-1 control-label">服务领域</label>
                    <div class="col-10">
                        <div class="select-pane j_selectItems">
                            <ul class="val">
                                    @forelse ($selectServiceDomainList as $key=>$value)
                                    @if($value)
                                    <li title="点击删除">{{@$getNameList[$value]['name']}}<input type="hidden" value="{{$value}}" name="service_domain"></li>

                                    @endif
                                    @empty
                                    @endforelse

                            </ul>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-offset-1 col-10">
                        <select class="form-control">
                            <option value="">请选择</option>
                            @forelse ($service_domain_list as $key=>$value)
                            <option value="{{$value['id']}}">{{$value['name']}}</option>
                            @empty
                            @endforelse
                        </select>
                        <button class="btn btn-primary j_selectBtn" type="button" data-name="service_domain">添加</button>
                    </div>
                </div>
            </div>
            <div class="j_selectPane">
                <div class="row">
                    <label class="col-2 control-label">实施推广能力及方式</label>
                    <div class="col-10">
                        <div class="select-pane j_selectItems">
                            <ul class="val">
                                @forelse ($selectMethodList as $key=>$value)
                                @if($value)
                                <li title="点击删除">{{@$getNameList[$value]['name']}}<input type="hidden" value="{{$value}}" name="method"></li>

                                @endif
                                @empty
                                @endforelse
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-offset-1 col-10">
                        <select class="form-control">
                            <option value="">请选择</option>
                            @forelse ($method_list as $key=>$value)
                            <option value="{{$value['id']}}">{{$value['name']}}</option>
                            @empty
                            @endforelse
                        </select>
                        <button class="btn btn-primary j_selectBtn" type="button" data-name="method">添加</button>
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="col-2 control-label">组织机构代码</label>
                <div class="col-4">
                    <input id="organize_code" class="form-control" size="40" type="text" value="{{$dataInfo['organize_code']}}">
                </div>
                <label class="col-3 control-label">组织机构代码（扫描件）</label>
                <div class="col-3 j_fileUpload">
                    <div class="static fl">
                        @if ($dataInfo['organize_code_file'])
                            <a class="j_fileUrl" data-href="{{$dataInfo['organize_code_file'][0]['url']}}">{{$dataInfo['organize_code_file'][0]['name']}}</a>
                        @else
                            <a class="j_fileUrl"></a>
                        @endif
                    </div>
                    <div class="file_select">
                        <div class="static">
                            @if ($dataInfo['organize_code_file'])
                                <a class="btn btn-small btn-primary j_fileTxt" data-txt="修改文件">修改文件</a>
                                <input class="txt_file j_fileSelect" name="files" type="file" id="organize_info">
                                <input class="j_name" type="hidden" id="organize_img_name" value="{{$dataInfo['organize_code_file'][0]['name']}}">
                                <input class="j_url" type="hidden" id="organize_img_url" value="{{$dataInfo['organize_code_file'][0]['url']}}">
                                <input class="j_md5" type="hidden" id="organize_img_md5" value="{{$dataInfo['organize_code_file'][0]['md5']}}">
                                <input class="j_thumbUrl" type="hidden" id="organize_img_thumbUrl" value="{{$dataInfo['organize_code_file'][0]['thumbUrl']}}">
                            @else
                                <a class="btn btn-small btn-primary j_fileTxt" data-txt="上传文件">上传文件</a>
                                <input class="txt_file j_fileSelect" name="files" type="file" id="organize_info">
                                <input class="j_name" type="hidden" id="organize_img_name" >
                                <input class="j_url" type="hidden" id="organize_img_url" >
                                <input class="j_md5" type="hidden" id="organize_img_md5" >
                                <input class="j_thumbUrl" type="hidden" id="organize_img_thumbUrl">
                            @endif

                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="col-2 control-label">营业执照注册号</label>
                <div class="col-4">
                    <input id="organize_regist_number" class="form-control" size="40" type="text" value="{{$dataInfo['organize_regist_number']}}">
                </div>
                <label class="col-3 control-label">营业执照注册号（扫描件）</label>
                <div class="col-3 j_fileUpload">
                    <div class="static fl">
                        @if ($dataInfo['organize_regist_number_file'])
                            <a class="j_fileUrl" data-href="{{$dataInfo['organize_regist_number_file'][0]['url']}}">{{$dataInfo['organize_regist_number_file'][0]['name']}}</a>
                        @else
                            <a class="j_fileUrl"></a>
                        @endif

                    </div>
                    <div class="file_select">
                        <div class="static">
                            @if ($dataInfo['organize_regist_number_file'])
                                <a class="btn btn-small btn-primary j_fileTxt" data-txt="修改文件">修改文件</a>
                                <input class="txt_file j_fileSelect" name="files" type="file" id="number_info">
                                <input class="j_name" type="hidden" id="number_img_name" value="{{$dataInfo['organize_regist_number_file'][0]['name']}}">
                                <input class="j_url" type="hidden" id="number_img_url" value="{{$dataInfo['organize_regist_number_file'][0]['url']}}">
                                <input class="j_md5" type="hidden" id="number_img_md5" value="{{$dataInfo['organize_regist_number_file'][0]['md5']}}">
                                <input class="j_thumbUrl" type="hidden" id="number_img_thumbUrl" value="{{$dataInfo['organize_regist_number_file'][0]['thumbUrl']}}">
                            @else
                                <a class="btn btn-small btn-primary j_fileTxt" data-txt="上传文件">上传文件</a>
                                <input class="txt_file j_fileSelect" name="files" type="file" id="number_info">
                                <input class="j_name" type="hidden" id="number_img_name" >
                                <input class="j_url" type="hidden" id="number_img_url" >
                                <input class="j_md5" type="hidden" id="number_img_md5">
                                <input class="j_thumbUrl" type="hidden" id="number_img_thumbUrl">
                            @endif
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">备案资质</label>
                <div class="col-10">
                    <table class="table">
                        <thead>
                        <tr>
                            <th width="40%">备案级别</th>
                            <th>资质附件</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td class="j_area">
                                <label class="checkbox-label">
                                    <input id="qualifiedNDRC" class="j_certified" type="checkbox" {{$dataInfo['record_info']['fgw']?"checked":""}}>
                                    发改委备案
                                </label>
                            </td>
                            <td class="j_fileUpload" style="position: relative;">
                                @if ($dataInfo['record_info']['fgw'])
                                    <div class="mask mask-transparent" style="display: none"></div>
                                @else
                                    <div class="mask mask-transparent"></div>
                                @endif
                                <div class="static fl">
                                    @if ($dataInfo['record_info']['fgw'])
                                        <a class="j_fileUrl" data-href="{{$dataInfo['fgw_file'][0]['url']}}">{{$dataInfo['fgw_file'][0]['name']}}</a>
                                    @else
                                        <a class="j_fileUrl"></a>
                                    @endif
                                </div>
                                <div class="file_select">
                                    <div class="static">
                                        @if ($dataInfo['record_info']['fgw'])
                                            <a class="j_fileTxt text-primary" data-txt="修改文件">修改文件</a>
                                            <input class="txt_file j_fileSelect" name="files" type="file" id="fgw_info">
                                            <input class="j_name" type="hidden" id="fgw_img_name" value="{{$dataInfo['fgw_file'][0]['name']}}">
                                            <input class="j_url" type="hidden" id="fgw_img_url" value="{{$dataInfo['fgw_file'][0]['url']}}">
                                            <input class="j_md5" type="hidden" id="fgw_img_md5" value="{{$dataInfo['fgw_file'][0]['md5']}}">
                                            <input class="j_thumbUrl" type="hidden" id="fgw_img_thumbUrl" value="{{$dataInfo['fgw_file'][0]['thumbUrl']}}">
                                        @else
                                            <a class="text-disabled j_fileTxt" data-txt="上传文件">上传文件</a>
                                            <input class="txt_file j_fileSelect" name="files" type="file" id="fgw_info">
                                            <input class="j_name" type="hidden" id="fgw_img_name">
                                            <input class="j_url" type="hidden" id="fgw_img_url">
                                            <input class="j_md5" type="hidden" id="fgw_img_md5">
                                            <input class="j_thumbUrl" type="hidden" id="fgw_img_thumbUrl">
                                        @endif

                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="j_area">
                                <label class="checkbox-label">
                                    <input id="qualifiedMIIT" class="j_certified" type="checkbox" {{$dataInfo['record_info']['gxb']?"checked":""}}>
                                    工信部推荐
                                </label>
                            </td>
                            <td class="j_fileUpload" style="position: relative;">
                                @if ($dataInfo['record_info']['gxb'])
                                    <div class="mask mask-transparent" style="display: none"></div>
                                @else
                                    <div class="mask mask-transparent"></div>
                                @endif
                                <div class="static fl">
                                    @if ($dataInfo['record_info']['gxb'])
                                        <a class="j_fileUrl" data-href="{{$dataInfo['gxb_file'][0]['url']}}">{{$dataInfo['gxb_file'][0]['name']}}</a>
                                    @else
                                        <a class="j_fileUrl"></a>
                                    @endif
                                </div>
                                <div class="file_select">
                                    <div class="static">
                                        @if ($dataInfo['record_info']['gxb'])
                                            <a class="j_fileTxt text-primary" data-txt="修改文件">修改文件</a>
                                            <input class="txt_file j_fileSelect" name="files" type="file" id="gxb_info">
                                            <input class="j_name" type="hidden" id="gxb_img_name" value="{{$dataInfo['gxb_file'][0]['name']}}">
                                            <input class="j_url" type="hidden" id="gxb_img_url" value="{{$dataInfo['gxb_file'][0]['url']}}">
                                            <input class="j_md5" type="hidden" id="gxb_img_md5" value="{{$dataInfo['gxb_file'][0]['md5']}}">
                                            <input class="j_thumbUrl" type="hidden" id="gxb_img_thumbUrl" value="{{$dataInfo['gxb_file'][0]['thumbUrl']}}">
                                        @else
                                            <a class="text-disabled j_fileTxt" data-txt="上传文件">上传文件</a>
                                            <input class="txt_file j_fileSelect" name="files" type="file" id="gxb_info">
                                            <input class="j_name" type="hidden" id="gxb_img_name">
                                            <input class="j_url" type="hidden" id="gxb_img_url">
                                            <input class="j_md5" type="hidden" id="gxb_img_md5">
                                            <input class="j_thumbUrl" type="hidden" id="gxb_img_thumbUrl">
                                        @endif

                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="j_area">
                                <label class="checkbox-label">
                                    <input id="qualifiedP" class="j_certified" type="checkbox" {{$dataInfo['record_info']['province']>0?"checked":""}}>
                                    省级
                                </label>
                                <select id="province_record_id" class="form-control j_areaSelect" {{$dataInfo['record_info']['province']>0?"":"disabled"}}>
                                    <option value="">请选择</option>
                                    @forelse ($province_list as $key=>$value)
                                    <option value="{{$value['id']}}" {{$value['id']==$dataInfo['record_info']['province']?"selected=selected":""}}>{{$value['name']}}</option>
                                    @empty
                                    @endforelse
                                </select>
                            </td>
                            <td class="j_fileUpload" style="position: relative;">
                                @if ($dataInfo['record_info']['province']>0)
                                    <div class="mask mask-transparent" style="display: none"></div>
                                @else
                                    <div class="mask mask-transparent"></div>
                                @endif
                                <div class="static fl">
                                    @if ($dataInfo['record_info']['province']>0)
                                        <a class="j_fileUrl" data-href="{{$dataInfo['province_file'][0]['url']}}">{{$dataInfo['province_file'][0]['name']}}</a>
                                    @else
                                        <a class="j_fileUrl"></a>
                                    @endif
                                </div>
                                <div class="file_select">
                                    <div class="static">
                                        @if ($dataInfo['record_info']['province']>0)
                                            <a class="j_fileTxt text-primary" data-txt="修改文件">修改文件</a>
                                            <input class="txt_file j_fileSelect" name="files" type="file" id="province_info">
                                            <input class="j_name" type="hidden" id="province_img_name" value="{{$dataInfo['province_file'][0]['name']}}">
                                            <input class="j_url" type="hidden" id="province_img_url" value="{{$dataInfo['province_file'][0]['url']}}">
                                            <input class="j_md5" type="hidden" id="province_img_md5" value="{{$dataInfo['province_file'][0]['md5']}}">
                                            <input class="j_thumbUrl" type="hidden" id="province_img_thumbUrl" value="{{$dataInfo['province_file'][0]['thumbUrl']}}">
                                        @else
                                            <a class="text-disabled j_fileTxt" data-txt="上传文件">上传文件</a>
                                            <input class="txt_file j_fileSelect" name="files" type="file" id="province_info">
                                            <input class="j_name" type="hidden" id="province_img_name">
                                            <input class="j_url" type="hidden" id="province_img_url">
                                            <input class="j_md5" type="hidden" id="province_img_md5">
                                            <input class="j_thumbUrl" type="hidden" id="province_img_thumbUrl">
                                        @endif
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="j_area">
                                <label class="checkbox-label">
                                    <input id="qualifiedC" class="j_certified" type="checkbox" {{$dataInfo['record_info']['city']>0?"checked":""}}>
                                    市级
                                </label>
                                <select class="form-control j_areaSelect" {{$dataInfo['record_info']['city']>0?"":"disabled"}} id="record_province_list">
                                    <option value="">请选择</option>
                                    @forelse ($province_list as $key=>$value)
                                    <option value="{{$value['id']}}" {{$value['id']==$record_city_province_id?"selected=selected":""}}>{{$value['name']}}</option>
                                    @empty
                                    @endforelse
                                </select>
                                <select id="city_record_id" class="form-control j_areaSelect" {{$dataInfo['record_info']['city']>0?"":"disabled"}}>
                                    <option value="">请选择</option>
                                    @forelse ($record_city_list as $key=>$value)
                                        <option value="{{$value['id']}}" {{$value['id']==$record_city_id?"selected=selected":""}}>{{$value['name']}}</option>
                                    @empty
                                    @endforelse
                                </select>
                            </td>
                            <td class="j_fileUpload" style="position: relative;">
                                    @if ($dataInfo['record_info']['city']>0)
                                        <div class="mask mask-transparent" style="display: none"></div>
                                    @else
                                        <div class="mask mask-transparent"></div>
                                    @endif
                                <div class="static fl">
                                    @if ($dataInfo['record_info']['city']>0)
                                        <a class="j_fileUrl" data-href="{{$dataInfo['city_file'][0]['url']}}">{{$dataInfo['city_file'][0]['name']}}</a>
                                    @else
                                        <a class="j_fileUrl"></a>
                                    @endif
                                </div>
                                <div class="file_select">
                                    <div class="static">
                                        @if ($dataInfo['record_info']['city']>0)
                                            <a class="j_fileTxt text-primary" data-txt="修改文件">修改文件</a>
                                            <input class="txt_file j_fileSelect" name="files" type="file" id="city_info">
                                            <input class="j_name" type="hidden" id="city_img_name" value="{{$dataInfo['city_file'][0]['name']}}">
                                            <input class="j_url" type="hidden" id="city_img_url" value="{{$dataInfo['city_file'][0]['url']}}">
                                            <input class="j_md5" type="hidden" id="city_img_md5" value="{{$dataInfo['city_file'][0]['md5']}}">
                                            <input class="j_thumbUrl" type="hidden" id="city_img_thumbUrl" value="{{$dataInfo['city_file'][0]['thumbUrl']}}">
                                        @else
                                            <a class="text-disabled j_fileTxt" data-txt="上传文件">上传文件</a>
                                            <input class="txt_file j_fileSelect" name="files" type="file" id="city_info">
                                            <input class="j_name" type="hidden" id="city_img_name">
                                            <input class="j_url" type="hidden" id="city_img_url">
                                            <input class="j_md5" type="hidden" id="city_img_md5">
                                            <input class="j_thumbUrl" type="hidden" id="city_img_thumbUrl">
                                        @endif
                                    </div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="row">
                <label class="col-2 control-label">单位Banner</label>
                <div class="col-10 j_fileUpload">
                    <div class="static fl">
                        @if ($dataInfo['company_banner'])
                            <a class="j_fileUrl" data-href="{{$dataInfo['company_banner'][0]['url']}}">{{$dataInfo['company_banner'][0]['name']}}</a>
                        @else
                            <a class="j_fileUrl"></a>
                        @endif
                    </div>
                    <div class="file_select">
                        <div class="static">
                            @if ($dataInfo['company_banner'])
                                <a class="j_fileTxt text-primary" data-txt="修改Banner">修改Banner</a>
                                <input class="txt_file j_fileSelect" name="files" type="file" id="banner_info">
                                <input class="j_name" type="hidden" id="banner_img_name" value="{{$dataInfo['company_banner'][0]['name']}}">
                                <input class="j_url" type="hidden" id="banner_img_url" value="{{$dataInfo['company_banner'][0]['url']}}">
                                <input class="j_md5" type="hidden" id="banner_img_md5" value="{{$dataInfo['company_banner'][0]['md5']}}">
                                <input class="j_thumbUrl" type="hidden" id="banner_img_thumbUrl" value="{{$dataInfo['company_banner'][0]['thumbUrl']}}">
                            @else
                                <a class="btn btn-small btn-primary j_fileTxt" data-txt="上传文件">上传文件</a>
                                <input class="txt_file j_fileSelect" name="files" type="file" id="banner_info">
                                <input class="j_name" type="hidden" id="banner_img_name">
                                <input class="j_url" type="hidden" id="banner_img_url">
                                <input class="j_md5" type="hidden" id="banner_img_md5">
                                <input class="j_thumbUrl" type="hidden" id="banner_img_thumbUrl">
                            @endif
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">单位简介</label>
                <div class="col-10">
                    <textarea id="company_desc" class="form-control form-control-text">{{$dataInfo['company_desc']}}</textarea>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">技术专长</label>
                <div class="col-10">
                    <input id="main_tech_desc" class="form-control" size="60" type="text" value="{{$dataInfo['main_tech_desc']}}">
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">技术优势</label>
                <div class="col-10">
                    <textarea id="tech_success_desc" class="form-control form-control-text" placeholder="介绍">{{$dataInfo['tech_success_desc']}}</textarea>
                </div>
            </div>
            <div class="row">
                <div class="col-offset-1 col-10">
                    <a class="btn btn-warning j_companySave" data-chk="2">提交认证</a>
                </div>
            </div>
        </div>
    </div>
</div>
<input id="j_domainIds" type="hidden" value="{{$selectCompanyDomainList?','.implode(',',$selectCompanyDomainList).',':''}}">
<input id="j_techPathIds" type="hidden" value="{{@$arrTechList?','.implode(',', $arrTechList).',':''}}">

<div id="j_domainModal"></div>
<div id="j_pathModal"></div>
@endsection

@section('script')
<script src="{{env('STATIC_PATH')}}/libs/datetimepicker.js"></script>
<script src="{{env('STATIC_PATH')}}/libs/ajaxfileupload.js"></script>
<script src="{{env('STATIC_PATH')}}/js/user_company2.js"></script>
<script type="text/javascript">
    //设置领域
    $(".j_setDomain").click(function(){
        var $modal = $('#j_domainModal');
        if (!$modal.find('.modal').length) {
            $.get('/add_company_info_domain_page', function (data) {
                $modal.html(data).css('display', 'block');
            }, 'html');
        } else {
            $modal.css('display', 'block');
        }
    });

    //设置技术路径
    $(".j_setPath").click(function(){
        if (!$('#j_domainIds').val()) {
            return showErr($('.j_setDomain'), '请先设置涉及领域');
        }
        var $modal = $('#j_pathModal');
        var domainIdsData = $("#j_domainIds").val();
        if (!$modal.find('.modal').length) {
            $.get('/add_company_info_tech_path',{domain:domainIdsData}, function (data) {
                $modal.html(data).css('display', 'block');
            }, 'html');
        } else {
            $modal.css('display', 'block');
        }
    });

    //关闭模态框
    $('#j_domainModal,#j_pathModal').on('click', '.close', function () {
        $(this).parents('.modal').parent().fadeOut(200);
    });
</script>
@endsection
